<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心-站内消息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>
<script type='text/javascript' src='<?php echo $this->_webroot('servtools/date/WdatePicker.js'); ?>'></script>
 
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
            <div class="cont">
<div class="title_uc"><h3>店铺销售统计图表</h3></div>
			<div class="clear" style="height:5px;"></div>
            <hr />
			<div class="clear" style="height:5px;"></div>			
			<div class="search">
				<form action="<?php echo $this->_url('shopcount/sell');?>" method="get" name="search_form" style="float:left;">
					时间段:<input class="Wdate" type="text" name="stime" id="stime" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $stime;?>" />到
					<input class="Wdate" type="text" name="etime" id="etime" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $etime;?>" />&nbsp;				
					<br/>
					<select name="state">
						<option value='' <?php if($state=="") {echo 'selected'; }?>>全部</option>
						<option value='1' <?php if($state=="1"){echo "selected";}?>>未确定</option>
						<option value='2' <?php if($state=="2"){echo "selected";}?>>已确定</option>
						<option value='3' <?php if($state=="3"){echo "selected";}?>>未支付</option>
						<option value='4' <?php if($state=="4"){echo "selected";}?>>已支付</option>
						<option value='5' <?php if($state=="5"){echo "selected";}?>>未发货</option>
						<option value='6' <?php if($state=="6"){echo "selected";}?>>已发货</option>
						<option value='7' <?php if($state=="7"){echo "selected";}?>>已完成</option>
						<option value='8' <?php if($state=="8"){echo "selected";}?>>已收款未发货</option>
						<option value='9' <?php if($state=="9"){echo "selected";}?>>未评价</option>
					</select>&nbsp;
					员工编号:<input type="input" value="<?php echo $salesman;?>" name="salesman" />&nbsp;
					客户用户名:<input type="input" value="<?php echo $cusname;?>" name="cusname" />&nbsp;
					<input type="submit" value="查看销量" class="look_order" />&nbsp;&nbsp;&nbsp;&nbsp;
				</form>
			</div>
<div class="clear"  style="height:5px;"></div>
				<table width="100%" class="">
					<tr class="">
					    <th width="100px" >月份</th>
						<th width="25%" >下单总额</th>
						<th width="25%" >付款总额</th>
						<th width="25%" >未付款总额</th>
						<th width="25%" >下单频率</th>						
				   </tr>
					<?php foreach($result as $k =>$v) { ?>				   
					<tr class="trcolor">
						<td ><?php echo $k;?></td>					
						<td >￥<?php if(empty($v[0][0]['countmoney']))$v[0][0]['countmoney']=0;echo $v[0][0]['countmoney'];?>元</td>
						<td >￥<?php if(empty($v[0][0]['pay']))$v[0][0]['pay']=0;echo $v[0][0]['pay'];?>元</td>
						<td >￥<?php if(empty($v[0][0]['nopay']))$v[0][0]['nopay']=0;echo $v[0][0]['nopay'];?>元</td>						
						<td ><?php if(empty($v[0][0]['num']))$v[0][0]['num']=0;echo $v[0][0]['num'];?></td>						
					</tr>
					<?php }?>

				</table>
				
				
				<table width="100%" class="">
					<tr class="">
                        <td>
						<h2>店铺销售比例图（比例单位为：<?php echo $bainum;?>）</h2>
						<?php echo $chart1;?>
						</td>						
				   </tr>
				</table>			

	        
			  
            </div>
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

</body>
</html>